package com.ybkj.o2o.mc.entity;

import java.io.Serializable;
import java.util.Date;

import com.ybkj.o2o.mc.common.DateField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * 部门实体类
 * @author jacklee
 *
 */
public class Department  extends AccountBase implements Serializable {


	private static final long serialVersionUID = 1L;
	
	private Long id;//编号
	
	private String name;//部门名称
	
	private String appKey;//系统标识
	
	private Long companyId;//公司Id
	
	private String companyName;//公司名称
	
	private Long enterpriseId;//企业Id
	
	private String enterpriseName;//企业名称
	
	private	Long parentId;//父级部门Id
	
	private	String parentName;//父级部门名称
	
	@JsonSerialize(using = DateField.class)
	private Date updated;//修改时间
	
	@JsonSerialize(using = DateField.class)
	private Date created;//创建时间
	
	private String remark;//备注

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", name=" + name + ", appKey=" + appKey
				+ ", companyId=" + companyId + ", companyName=" + companyName
				+ ", enterpriseId=" + enterpriseId + ", enterpriseName="
				+ enterpriseName + ", updated=" + updated + ", created="
				+ created + ", remark=" + remark + "]";
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

}
